package org.dromara.run.service;

import org.dromara.run.domain.RunList;
import org.dromara.run.domain.bo.ApplicationBo;
import org.dromara.run.domain.bo.ScheduleBo;
import org.dromara.run.domain.vo.RunListVo;
import org.dromara.run.domain.bo.RunListBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 阳光跑名单Service接口
 *
 * @author chl
 * @date 2024-08-30
 */
public interface IRunListService {

    /**
     * 查询阳光跑名单
     */
    RunListVo queryById(Long listId);

    /**
     * 查询阳光跑名单列表
     */
    TableDataInfo<RunListVo> queryPageList(RunListBo bo, PageQuery pageQuery);

    /**
     * 查询阳光跑名单列表
     */
    List<RunListVo> queryList(RunListBo bo);

    /**
     * 新增阳光跑名单
     */
    Boolean insertByBo(RunListBo bo);

    /**
     * 修改阳光跑名单
     */
    Boolean updateByBo(RunListBo bo);

    /**
     * 校验并批量删除阳光跑名单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean batchCreateRunList(ScheduleBo bo);

    Boolean updateByMemberId(ApplicationBo bo);

    Boolean deleteWithMemberId(RunListBo runListBo);
}
